package com.cwl.pattern.中介者模式;

/**
 * @program: pattern
 * @description:抽象的同事类
 * @author: ChenWenLong
 * @create: 2019-07-09 22:17
 **/
public abstract class Colleague {

    protected Mediator mediator;
    public void setMedium(Mediator mediator) {
        this.mediator=mediator;
    }

    public abstract void receive();
    public abstract void send();
}
